package com.freecloud.javabasics.network.rpc.server.provider;

import com.freecloud.common.LoggerUtil;
import com.freecloud.javabasics.network.rpc.server.api.IHelloService;
import com.freecloud.javabasics.network.rpc.server.api.User;

/**
 * @Author: maomao
 * @Date: 2020-03-15 21:12
 */
@RpcService(IHelloService.class)
public class IHelloServiceImpl implements IHelloService {
    @Override
    public String sayHello(String message) {

        LoggerUtil.println("request in : say Hello --> " + message);
        return "say hello : " + message;
    }

    @Override
    public String saveUser(User user) {
        LoggerUtil.println("request in saveUser: " + user);
        return "保存成功";
    }
}
